//
// Created by tjlhz on 2022/6/25.
//

#include "Teacher.h"
#include "iostream"
void CTeacher::DoFunction() {
    bool exit = false;
    while(true) {
        cout << "请选择功能" << endl;
        cout << "1.查询教学班级" << endl;
        cout << "2.查询班级学生" << endl;
        cout << "3.设置学生成绩" << endl;
        cout << "4.查询班级学生成绩" << endl;
        cout<<"其它.退出"<<endl;
        int id;
        cin>>id;
        switch (id) {
            case 1:
                QueryTeachClass();
                break;
            case 2:
                int courseId;
                int studentId;
                int scour;
                cout<< "请输入学号， 课程号， 成绩";
                cin>>studentId;
                cin>>courseId;
                cin>>scour;
                SetScore(studentId, courseId, scour);
                break;
            case 3:
                int teachClassId;
                cout<< "请输入教学班号";
                cin>>teachClassId;
                QueryScore(teachClassId);
                break;
            case 4:
                cout<< "请输入教学班号";
                cin>>teachClassId;
                QueryStudent(teachClassId);
                break;
            default:
                exit = true;

        }
        if (exit)
            break;
    }
}



void CTeacher::QueryTeachClass() {
    printf("QueryTeachClass");

}

void CTeacher::SetScore(int studentId, int courseId, int score) {
    printf("SetScore");

}

void CTeacher::QueryScore(int teachCourseId) {
    printf("QueryScore");

}

void CTeacher::QueryStudent(int teachCourseId) {
    printf("QueryStudent");
}

void CTeacher::PrintMyInfo() {

}
